package com.asset.crm.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Table(name="action_column_predefined_value")
@Entity
public class ActionColumnPredefinedValue implements Serializable  {
	
	private Integer id;
	private ActionField actionFieldId;
	private String value;
	

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="action_column_predefined_value_id_seq")
	@SequenceGenerator(name="action_column_predefined_value_id_seq",sequenceName="action_column_predefined_value_id_seq",allocationSize=1)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@ManyToOne
	@JoinColumn(name="action_field_id")
	public ActionField getActionFieldId() {
		return actionFieldId;
	}
	public void setActionFieldId(ActionField actionFieldId) {
		this.actionFieldId = actionFieldId;
	}
	
	@Column(name="value")
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
}
